package com.share.order.service;

import com.share.order.api.domain.EndOrderVo;
import com.share.order.api.domain.OrderInfo;
import com.share.order.api.domain.SubmitOrderVo;

import java.util.List;
import java.util.Map;

public interface IOrderInfoService {
    OrderInfo getNoFinishOrder(Long userId);
    OrderInfo selectOrderInfoById(Long id);

    Long saveOrder(SubmitOrderVo submitOrderVo);

    void processPaySucess(String orderNo);

    void endOrder(EndOrderVo endOrderVo);

    List<OrderInfo> selectOrderListByUserId(Long userId);

    Map<String, Object> getOrderCount(String sql);
}
